<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        ul {
            list-style: none;
        }

        .wrapper {
            position: relative;
            width: 700px;
            height: 360px;
            border: #ccc 1px solid;
            margin: 100px auto;
        }
        .wrapper ul li {
            position: absolute;
            top: 0;
            width: 175px;
            height: 360px;
            perspective: 50000px;
            transform-style: preserve-3d;
            transition: all 1s ease;
        }
        .wrapper ul li:nth-child(1) {
            left: 0;
        }
        .wrapper ul li:nth-child(2) {
            left: 175px;
        }
        .wrapper ul li:nth-child(3) {
            left: 350px;
        }
        .wrapper ul li:nth-child(4) {
            left: 525px;
        }

        .wrapper ul li div {
            position: absolute;
            width: 100%;
            height: 360px;
            background-size: 700px 360px;
        }

        .wrapper ul li div:nth-child(1) {
            background-image: url(img/selda.jpg);
            transform: translateZ(180px)
        }
        .wrapper ul li div:nth-child(2) {
            background-image: url(img/honor.jpg);
            transform: rotateX(90deg) translateZ(180px);
        }
        .wrapper ul li div:nth-child(3) {
            background-image: url(img/splatoon.jpg);
            transform: rotateX(180deg) translateZ(180px);
        }
        .wrapper ul li div:nth-child(4) {
            background-image: url(img/mario.jpg);
            transform: rotateX(270deg) translateZ(180px);
        }

        .wrapper ul li:nth-child(1) div{
            background-position: 0 0 ;
        }
        .wrapper ul li:nth-child(2) div{
            background-position: -175px 0 ;
        }
        .wrapper ul li:nth-child(3) div{
            background-position: -350px 0 ;
        }
        .wrapper ul li:nth-child(4) div{
            background-position: -525px 0 ;
        }

        .btn {
            display: block;
            width: 100px;
            height: 50px;
            margin: 10px auto;
        }
    </style>
</head>
<body>
    <div class="wrapper">
        <ul>
            <li>
                <div></div>
                <div></div>
                <div></div>
                <div></div>
            </li>
            <li>
                <div></div>
                <div></div>
                <div></div>
                <div></div>
            </li>
            <li>
                <div></div>
                <div></div>
                <div></div>
                <div></div>
            </li>
            <li>
                <div></div>
                <div></div>
                <div></div>
                <div></div>
            </li>
        </ul>
    </div>
    <input type="button" class="btn" id="" value="下一张">
    <script src="jquery.min.js"> </script>
    <script>
        const $lis = $(".wrapper ul li"), $btn = $(":button");
        let sym = 0, lock = false;
        $btn.click(function () {
            if (lock) {
                return;
            }
            lock =true
            sym -= 90;
            $lis.each(function (i) {
                $(this).css({
                    "transform": `rotateX(${-sym}deg)`,
                    "transition-delay": `${0.1*i}s`
                })
            })
            const time = 1000 + 100 * ($lis.length - 1)
            setTimeout(() => {
                lock = false;
            },time)
        })
    </script>
</body>
</html>